package cn.yuhan.simplediary.diary.service;

import cn.yuhan.simplediary.diary.entity.Diary;

import java.util.List;

public interface DiaryService {
    void createDiary(Diary diary);

    List<Diary> getUserDiaries(Long userId);

    List<Diary> getAllDiaries();

    void updateDiary(Diary diary);

    void deleteDiary(Long diaryId);

    void hideDiary(Long diaryId,Boolean hide);
}